<?php


/**
 * WEB接口
 */



/**
 * 外部视频接口
 */
$router->group(['prefix'=>'video'], function () use ($router) {
    $router->post('index','VideoController@getIndex');
    $router->post('one','VideoController@getOne');
    $router->post('form/add','VideoController@setFormAdd');
    $router->post('form/modify','VideoController@setFormUpdate');
    $router->post('json/add','VideoController@setJsonAdd');
    $router->post('del','VideoController@setDel');
    $router->post('redo','VideoController@setRedo');
});
/**
 * 库视频接口
 */
$router->group(['prefix'=>'stock'], function () use ($router) {
    $router->post('index','StockController@getIndex');
    $router->post('one','StockController@getOne');
    $router->post('form/add','StockController@setFormAdd');
    $router->post('form/modify','StockController@setFormUpdate');
    $router->post('json/add','StockController@setJsonAdd');
    $router->post('del','StockController@setDel');
    $router->post('redo','StockController@setRedo');
    //素材
    $router->post('layer/index','StoLayerController@getIndex');
    $router->post('layer/add','StoLayerController@setAdd');
    $router->post('layer/modify','StoLayerController@setUpdate');
});
/**
 * 库视频创单接口
 */
$router->group(['prefix'=>'stock/plus'], function () use ($router) {
    $router->post('index','PlusController@getIndex');
    $router->post('condidtion','PlusController@getConditions');
});
/**
 * 库视频创板接口
 */
$router->group(['prefix'=>'stock/board'], function () use ($router) {
    $router->post('index','BoardController@getIndex');
    $router->post('condidtion','BoardController@getConditions');
});
/**
 * 库视频渲染订单接口
 */
$router->group(['prefix'=>'order'], function () use ($router) {
    $router->post('index','OrderController@getIndex');
    $router->post('condidtion','OrderController@getConditions');
});